package com.houdoudou.supplier.common;

import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.provider.Settings;
import android.widget.Toast;

;

public class MyAlert {

  public static void	simpleDialog( Context context,String title, String message){
	  Builder b = new AlertDialog.Builder(context).setTitle(title)  
			     .setMessage(message);  
			   b.setPositiveButton("确认", new DialogInterface.OnClickListener() {  
			    public void onClick(DialogInterface dialog, int whichButton) {  					    	
			    	 dialog.cancel();
			    }  
			   }).show();  
  }
  public static void  toast(Context context,String message){
	  Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
  }
  
}
